<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Template渲染</title>
    <style>

        ul {
            width: 200px;
            margin: 100px auto;
        }
        ul li{
            height: 50px;
            border-bottom: 1px solid white;
            background-color: lightcyan;
            list-style: none;
            text-align: center;
            line-height: 50px;
        }
    </style>
</head>
<body>
{# 模板的注释 django模板的语法 后台写的 #}

<h1>{{ name }}</h1>

<ul>
    {% for book in books %}
        <li>《 {{ book }} 》</li>
    {% endfor %}
</ul>

</body>
</html>
